﻿using System.Collections.Generic;
using System.Threading;

namespace InheritanceVsCoupling
{
    class MailService
    {
        private readonly ILogger _logger;

        public MailService(ILogger logger)
        {
            _logger = logger;
        }

        public void SendMails(List<string> mailList, string message)
        {
            _logger.Log("SendMails Start");
            //Что-то происходит
            Thread.Sleep(1000);
            _logger.Log("SendMails Finish");
        }
    }
}